furny.ga
Class FurnLayoutPhenotypeGenerator

java.lang.Object
  extended by furny.ga.FurnLayoutPhenotypeGenerator
All Implemented Interfaces:
IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node>

public class FurnLayoutPhenotypeGenerator
extends java.lang.Object
implements IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node>

This class is the decoder for furniture genotypes. It creates phenotypes.

Since:
11.08.2012
Author:
Stephan Dreyer

Constructor Summary
FurnLayoutPhenotypeGenerator()
          Creates a new furniture phenotype generator.
 
Method Summary
 com.jme3.scene.Node createPhenotype(FurnLayoutIndividual individual)
          Creates a phenotype from a genotype.
 void setAssetManager(com.jme3.asset.AssetManager assetManager)
          Setter for the asset manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FurnLayoutPhenotypeGenerator

public FurnLayoutPhenotypeGenerator()
Creates a new furniture phenotype generator.

Since:
11.08.2012
Method Detail

setAssetManager

public void setAssetManager(com.jme3.asset.AssetManager assetManager)
Description copied from interface: IPhenotypeGenerator
Setter for the asset manager.

Specified by:
setAssetManager in interface IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node>
Parameters:
assetManager - The asset manager.

createPhenotype

public com.jme3.scene.Node createPhenotype(FurnLayoutIndividual individual)
Description copied from interface: IPhenotypeGenerator
Creates a phenotype from a genotype. (Decode function)

Specified by:
createPhenotype in interface IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node>
Parameters:
individual - Individual that contains the genotype.
Returns:
Phenotype as JME spatial.